package com.chb.flyweight;


/**
 * @author chihb
 * @create-time 2024/10/24 15:03
 * @description
 */
public class BlackPiece extends Piece{
    public BlackPiece(){
        this.color="黑色";
    }

    @Override
    public void draw(int x, int y) {
        System.out.println(color+"棋子坐标："+x+","+y);
    }
}
